package com.insuremonitor.system.service.impl;

import java.util.List;
import com.insuremonitor.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.insuremonitor.system.mapper.FrontReportInsureProcessMapper;
import com.insuremonitor.system.domain.FrontReportInsureProcess;
import com.insuremonitor.system.service.IFrontReportInsureProcessService;

/**
 * 保险立案过程Service业务层处理
 * 
 * @author ruoyi
 * @date 2024-06-14
 */
@Service
public class FrontReportInsureProcessServiceImpl implements IFrontReportInsureProcessService 
{
    @Autowired
    private FrontReportInsureProcessMapper frontReportInsureProcessMapper;

    /**
     * 查询保险立案过程
     * 
     * @param reportProcessId 保险立案过程主键
     * @return 保险立案过程
     */
    @Override
    public FrontReportInsureProcess selectFrontReportInsureProcessByReportProcessId(Long reportProcessId)
    {
        return frontReportInsureProcessMapper.selectFrontReportInsureProcessByReportProcessId(reportProcessId);
    }

    /**
     * 查询保险立案过程列表
     * 
     * @param frontReportInsureProcess 保险立案过程
     * @return 保险立案过程
     */
    @Override
    public List<FrontReportInsureProcess> selectFrontReportInsureProcessList(FrontReportInsureProcess frontReportInsureProcess)
    {
        return frontReportInsureProcessMapper.selectFrontReportInsureProcessList(frontReportInsureProcess);
    }

    /**
     * 新增保险立案过程
     * 
     * @param frontReportInsureProcess 保险立案过程
     * @return 结果
     */
    @Override
    public int insertFrontReportInsureProcess(FrontReportInsureProcess frontReportInsureProcess)
    {
        frontReportInsureProcess.setCreateTime(DateUtils.getNowDate());
        return frontReportInsureProcessMapper.insertFrontReportInsureProcess(frontReportInsureProcess);
    }

    /**
     * 修改保险立案过程
     * 
     * @param frontReportInsureProcess 保险立案过程
     * @return 结果
     */
    @Override
    public int updateFrontReportInsureProcess(FrontReportInsureProcess frontReportInsureProcess)
    {
        frontReportInsureProcess.setUpdateTime(DateUtils.getNowDate());
        return frontReportInsureProcessMapper.updateFrontReportInsureProcess(frontReportInsureProcess);
    }

    /**
     * 批量删除保险立案过程
     * 
     * @param reportProcessIds 需要删除的保险立案过程主键
     * @return 结果
     */
    @Override
    public int deleteFrontReportInsureProcessByReportProcessIds(Long[] reportProcessIds)
    {
        return frontReportInsureProcessMapper.deleteFrontReportInsureProcessByReportProcessIds(reportProcessIds);
    }


}
